package com.luanye.enjoy.enums;

import lombok.Getter;

@Getter
public enum WeChatResultCode implements StatusCode {

    /**
     *  获取 openid 失败
     */
    ACQUIRE_OPENID_FAILED(2000, "获取openid失败"),

    /**
     *  用户存在
     */
    WECHAT_USER_EXISTED(2001, "当前微信用户已存在"),

    /**
     *  需要登陆
     */
    NEED_LOGIN(2002, "需要登录")

    ;

    private int code;
    private String msg;
    WeChatResultCode (int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
